#!/bin/bash

echo "toor" | passwd root --stdin
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
curl -o /etc/yum.repos.d/CentOS-Base.repo https://gitee.com/bigwt/mirrors/raw/master/CentOS6-Base.repo
yum clean all
yum makecache
yum -y install epel-release wget screen bash-completion
sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf
yum -y update


# IPADDR=192.168.200.139
# NETMASK=255.255.255.0
# GATEWAY=192.168.200.2
# DNS1=192.168.200.2